# 游标应用--查询

from pymysql import Connection

conn=Connection(
    host="192.168.0.88",
    port=3308,
    user="root",
    password="root"
)
cursor=conn.cursor()
conn.select_db("hmdp")

cursor.execute("select * from tb_voucher")
results=cursor.fetchall()

for row in results:
    print(row)



conn.close()